<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="export()">导出</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh"
                   ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>车架号(VIN)</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.otVin"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>物料名称</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.inventoryConfiguration"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>车型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.vehicleSpec">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wndVehicleName"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="vehicleSpec in (dropDownList.vehicleSpec | filter: $select.search)">
                                    <span ng-bind="vehicleSpec.wndVehicleName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_)!=-1"
                         class="otherFormItem">
                        <div>发运状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipmentStatus">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices
                                        repeat="shipmentStatus in (dropDownList.shipmentStatus | filter: $select.search)">
                                    <span ng-bind="shipmentStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_)!=-1">
                        <div>承运商</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.spCarrier"/>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>出库确认时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.startBlConfirmTime" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.endBlConfirmTime" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_)!=-1">
                        <div>物料代码</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.materialCode"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>备料单ID</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.otBlId"/>
                        </div>
                    </div>
                    <div class="otherFormItem"
                         ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_)!=-1">
                        <div>承运商</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.spCarrier"/>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_)!=-1">
                        <div>
                            经销商
                        </div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.spDealer">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table serial minScreen">
                <tbody>
                <tr>
                    <th>序号</th>
                    <th>车架号(VIN码)</th>
                    <th>车型</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1">物料代码</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1">物料名称(配置)</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1">颜色代码</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1">颜色名称</th>
                    <th>货主</th>
                    <th>备料ID</th>
                    <th>出库类型</th>
                    <th>承运商</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">经销商</th>
                    <th>出库确认时间</th>
                    <th>出库确认人</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">发运状态</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">发运时间</th>
                    <th ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">板车出库时间</th>
                </tr>
                <tr ng-repeat="inventoryRecords in inventoryRecordsList" ng-click="Tools.initTableClick($event)">
                    <td ng-bind="$index + 1"></td>
                    <td ng-bind="inventoryRecords.otVin"></td>
                    <td ng-bind="inventoryRecords.otVehicleSpecName"></td>

                    <td ng-bind="inventoryRecords.materialCode"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1"></td>
                    <td ng-bind="inventoryRecords.configuration"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1"></td>
                    <td ng-bind="inventoryRecords.colourCode"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1"></td>
                    <td ng-bind="inventoryRecords.colourName"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) === -1"></td>

                    <td ng-bind="inventoryRecords.otCustomerName"></td>
                    <td ng-bind="inventoryRecords.otBlId"></td>
                    <td ng-bind="inventoryRecords.otType | outboundTypeFilter"></td>
                    <td ng-bind="inventoryRecords.spCarrier"></td>
                    <td ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1" ng-bind="inventoryRecords.spDealer"></td>
                    <td ng-bind="inventoryRecords.otBlConfirmTime"></td>
                    <td ng-bind="inventoryRecords.modifyUserName"></td>
                    <td ng-bind="inventoryRecords.otOutboundFlag1 | shipmentPlanStatusFilter"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1"></td>
                    <td ng-bind="(inventoryRecords.otOutboundFlag1 == 1) || (inventoryRecords.otOutboundFlag1 == 2) ? inventoryRecords.inspectTime : ''"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1"></td>
                    <td ng-bind="inventoryRecords.otDepartureTime"
                        ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1"></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>